package com.nian.search.solr.vo;

/**
 * 用途：
 * 开发：zhangmj
 * 日期：2020/4/14 0014 17:45
 */
public class PageVO {

    private Integer pageNum;

    private Integer pageSize;

    public PageVO() {}

    public PageVO(Integer pageNum, Integer pageSize) {
        this.pageNum = pageNum;
        this.pageSize = pageSize;
    }

    public Integer getPageNum() {
        return pageNum == null || pageNum < 0 ? 0 :pageNum;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }
}
